/* 今日推荐组件样式 - 无缝轮播优化 */
.show .Recommend {
    height: 165px;
    background-color: #ffffff;
    margin: 10px 0;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

/* 时钟区域 */
.show .Recommend .yui3-u-1-6.clock {
    width: 210px;
    flex-shrink: 0;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #5a5251;
    border: 1px solid #e8e8e8;
}

.show .Recommend .clock .time {
    text-align: center;
}

.show .Recommend .clock img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.show .Recommend .clock h3 {
    margin: 0;
    font-size: 20px;
    color: #fcfbfb;
    font-weight: bold;
}

/* 轮播容器 */
.recommend-carousel {
    flex: 1;
    height: 165px;
    overflow: hidden;
    position: relative;
    background-color: #f5f5f5;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-wrapper {
    display: flex;
    height: 100%;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.carousel-item {
    flex-shrink: 0;
    width: calc(20% - 2px); /* 每次显示5个，考虑边距 */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 1px;
    background-color: #ffffff;
    border: 1px solid #e8e8e8;
    box-sizing: border-box;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

.carousel-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.carousel-item a {
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 10px;
    box-sizing: border-box;
}

.carousel-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.carousel-item:hover img {
    transform: scale(1.05);
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-indicators span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.carousel-indicators span:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.carousel-indicators span.active {
    background-color: #c81623;
    border-color: #c81623;
    transform: scale(1.3);
}

/* 导航箭头 (可选) */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.recommend-carousel:hover .carousel-nav {
    opacity: 1;
}

.carousel-nav:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 10px;
}

.carousel-nav.next {
    right: 10px;
}

/* 猜你喜欢组件样式保持不变 */
.like {
    margin-top: 20px;
}

.like .bd {
    margin-top: 10px;
}

.like .Favourate {
    border: 1px solid #e4e4e4;
    padding: 10px 0;
    overflow: visible;
    height: auto;
    min-height: 470px;
}

.like .yui3-g.picLB li {
    height: 470px;
    padding: 10px;
    box-sizing: border-box;
    position: relative;
}

.like #picLBxxl li {
    height: 470px !important;
    overflow: visible !important;
}

.like .picLB li {
    height: 470px !important;
    overflow: visible !important;
}

.like .picDl {
    position: relative;
    width: 100%;
    height: auto !important;
    overflow: visible !important;
    position: static !important;
}

.like .picDl dd {
    width: 100%;
    margin-bottom: 10px;
}

.like .picDl dd .pic {
    display: block;
    width: 100%;
    height: 142px;
    overflow: hidden;
    margin-bottom: 10px;
    background-color: #f8f8f8;
    border: 1px solid #e8e8e8;
}

.like .picDl dd img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.like .picDl dd img:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.like .like-text {
    width: 100%;
    border-right: none !important;
}

.like .like-text p {
    margin: 0 0 5px 0;
    line-height: 18px;
    font-size: 12px;
    color: #666;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 36px;
}

.like .like-text h3 {
    color: #df3033;
    font-size: 16px;
    margin: 5px 0 0 0;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .py-container {
        width: 100%;
        padding: 0 10px;
    }
    
    .show .Recommend .yui3-u-1-6.clock {
        width: 180px;
    }
    
    .like .picDl dd .pic {
        height: 120px;
    }
}

@media (max-width: 992px) {
    .show .Recommend .yui3-u-1-6.clock {
        width: 150px;
    }
    
    .show .Recommend .clock h3 {
        font-size: 12px;
    }
    
    .carousel-indicators span {
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 768px) {
    .show .Recommend {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }
    
    .show .Recommend .yui3-u-1-6.clock {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
        height: 60px;
    }
    
    .recommend-carousel {
        height: 140px;
    }
    
    .carousel-item {
        width: 50%; /* 移动端显示2个 */
    }
}

/* 加载动画 */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.carousel-item {
    animation: fadeIn 0.5s ease-out;
}

.like .picDl dd {
    animation: fadeIn 0.5s ease-out;
}

/* 分组延迟动画 */
.like .yui3-u-1-6:nth-child(1) { animation-delay: 0.1s; }
.like .yui3-u-1-6:nth-child(2) { animation-delay: 0.2s; }
.like .yui3-u-1-6:nth-child(3) { animation-delay: 0.3s; }
.like .yui3-u-1-6:nth-child(4) { animation-delay: 0.4s; }
.like .yui3-u-1-6:nth-child(5) { animation-delay: 0.5s; }
.like .yui3-u-1-6:nth-child(6) { animation-delay: 0.6s; }

/* 性能优化 */
.carousel-wrapper {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.carousel-item img {
    image-rendering: auto;
    image-rendering: crisp-edges;
    image-rendering: -webkit-optimize-contrast;
}